/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ui;

import java.awt.Component;
import javax.swing.AbstractCellEditor;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

/**
 *
 * @author Esteban
 */
public class Controller implements TableCellRenderer {
    
    public Controller(){
        
    }
    
    @Override
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    TableCellRenderer renderer = null;
    if (renderer==null && value!=null) {
        renderer = table.getCellRenderer(row, column);
    }
    if (renderer == null) {
        renderer = table.getDefaultRenderer(table.getColumnClass(column));
    }
 
    return renderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); 
    }
}
